package com.nuit.cxl.bilibili.service.impl;

import com.nuit.cxl.bilibili.dao.RecommendDao;
import com.nuit.cxl.bilibili.dao.UserDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class RecommendServiceImpl implements com.nuit.cxl.bilibili.service.RecommendService {

    String userId;
    RecommendDao recommendDao;
    UserDao userDao;

    @Override
    public String[] fetchRecommend() {
//        ArrayList
        System.out.println("userId = " + userId);
        String[] recommends = recommendDao.getDataFromDatabase();
        return recommends;
    }

    public RecommendDao getRecommendDao() {
        return recommendDao;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setRecommendDao(RecommendDao recommendDao) {
        this.recommendDao = recommendDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
}
